Component({
  options: {
    multipleSlots: true // 在组件定义时的选项中启用多slot支持
  },
  data: {
    focus: false
  },
  properties: {
    title: {
      type: String,
      value: ""
    },
    value: {
      type: String,
      value: ""
    },
    top: {
      type: Number,
      value: 0
    },
    auto: {
      type: Boolean,
      value: false
    },
    placeholder: {
      type: String,
      value: ""
    },
    disabled: {
      type: Boolean,
      value: false
    }
  },
  methods: {
    onClick(e) {
      this.setData({
        focus: true
      })
    },
    inputChange(e) {
      let value = e.detail.value;
      this.triggerEvent('change', value);
    }
  }
})